<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title></title>
	
	<link rel="stylesheet" type="text/css" href="css2/submodal/subModal.css" />
	<script language="javascript" type="text/javascript" src="css2/submodal/common.js"></script>
	<script language="javascript" type="text/javascript" src="css2/submodal/subModal.js"></script>
	
	<script type="text/javascript" src="css2/calendar/dhtmlgoodies_calendar.js"></script>
	<?php javaScript(); ?>
	<link rel="stylesheet" type="text/css" href="<?php echo $_SESSION["MAPA_PATH_"]; ?>css/default.css">
</head>
<body>

<h2>Mapa Ocupacional</h2>

<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
	<form name="monthYear" method="get">
	<td colspan="2">
		<?php echo $scrollarrows ?><span class="date_header">&nbsp;<?php echo $lang['months'][$m-1] ?>&nbsp;<?php echo $y ?></span>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<?php
		require_once"funcoes/hostel_reservas.jsp";
		getStatusReservas();
		
		?>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

	<?php //monthPullDown($m, $lang['months']); yearPullDown($y); ?>
	 <b>Exibir ap&oacute;s:</b>
              <input type="text" value="<?php echo ($_REQUEST["pdatai"] ? $_REQUEST["pdatai"] : date("d/m/Y") ); ?>" readonly name="pdatai"  id="pdatai" style="border:none;" size="11">
              <img src="images/data_hoje.gif" border="0" style="cursor:hand;" onclick="document.getElementById('pdatai').value='<?php echo date("d/m/Y"); ?>'">
              <img src="images/data2.gif" border="0" style="cursor:hand;" onclick="displayCalendar(document.getElementById('pdatai'),'dd/mm/yyyy',this);">

	<input type="button" value="Atualizar Mapa" onClick="submitMonthYear()">
	</td>
	</form>

</tr>

<tr>
	<td colspan="2" bgcolor="#aaaaaa">
	<?php echo writeCalendar("$d/$m/$y"); ?>
	</td>
</tr>
<tr>
	<td colspan="2" align="center">
 <span class='amarelo'>Reservada</span> - 
 <span class='amarelo' style='text-decoration: line-through;'>Reserva Vencida</span> - 
 <span class='verde'>Reserva Confirmada</span> <br /> 
  <span class='azul'>Ocupada (Check in efetuado)</span> - 
 <span class='azul' style='text-decoration: line-through;'>Conta Encerrada (Check out efetuado)</span> <br />
 <span class='cinza'>Livre</span> - 
 <span class='vermelho'>Manuten&ccedil;&atilde;o / Bloqueio</span>
	
	</td>
</tr>



</table>



</body>
</html>
